// MeshConvertorDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "Mesh.h"

#define nMESH2NEU 1
#define nNEU2MESH 2


// CMeshConvertorDlg dialog
class CMeshConvertorDlg : public CDialog
{
// Construction
public:
	CMeshConvertorDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	enum { IDD = IDD_MESHCONVERTOR_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedRadioM2n();
	afx_msg void OnBnClickedRadioN2m();
	afx_msg void OnEnChangeEditFilein();
	afx_msg void OnEnChangeEditFileout();
public:
	CEdit m_editFileIn;
	CEdit m_editFileOut;
	CString m_cstrFileIn;
	CString m_cstrFileOut;

	CMesh m_mesh;
	int m_nRadioType;  //1 mesh to neu, 2 neu to mesh
	CButton m_ratio_m2n;
	CButton m_ratio_n2m;
public:
	afx_msg void OnBnClickedConvert();
public:
	afx_msg void OnBnClickedButtonFilein();
public:
	afx_msg void OnBnClickedButtonFileout();
};
